{% extends request.ajax ? "base_ajax.html" : "base.html" %}

{% block content %}
    <h1>Последние вести</h1>
    {% if posts %}
        {% for post in posts %}
            <article>
                <header>
                    <h2>{{ post.title }}</h2>
                    <p>Published: <time pubdate datetime="2009-10-09">9th October, 2009</time></p>
                </header>
                <p>{{ post.body }}</p>
            </article>
        {% endfor %}
    {% else %}

    {% endif %}
{% endblock %}